Separate arrays convention for storing triangle meshes

Metadata
aliases: []
shorthands: {}
created: 2022-02-26 18:39:07
modified: 2022-02-26 18:49:08

This is just a simple way of storing the vertices and indices of a mesh in memory: store the , , coordinates in separate arrays and also put the indices corresponding to the corners of triangles in separate arrays.

This means the following exact configuration:

Example: tetrahedron

With this convention, a tetrahedron would be stored the following way (using Python syntax):

x=[0, 1, 2, 0]
y=[0, 0, 1, 2]
z=[0, 2, 0, 1]

i=[0, 0, 0, 1]
j=[1, 2, 3, 2]
k=[2, 3, 1, 3]

This results in the following, when rendered (see this):